package com.example.demo.setstudy;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.TreeSet;

/**
 * @Description StudentTest2
 * @Author songchuanlong
 * @Date 2025-05-12
 */
public class StudentTest3 {
    public static void main(String[] args) {
        //List练习
        List<Student> students = new ArrayList<>();
        students.add(new Student("王大锤",26,179.6));
        students.add(new Student("小仙女",26,178.6));
        students.add(new Student("路人甲",32,177.6));
        students.add(new Student("文艺少",27,177.6));
        System.out.println(students.get(0));
        System.out.println(students.get(2));
        System.out.println(students.get(3));

        System.out.println(students);
    }
}
